#pragma once

#include "SnRender.h"
#include "base/shader.h"
#include <memory>
#include <vector>
namespace Sivin {
  class VertexColorRender : public SnRender {
  public:
    explicit VertexColorRender();
    ~VertexColorRender();

  public:
    void onGLInit() override;
    void onRender() override;

  private:
    std::unique_ptr<Shader> mShader{nullptr};

    std::vector<float> mVertexData;
    std::vector<GLuint> mElementIndexArray;

    GLuint mVAO;
    // GLuint mInColorLocation;
  };
}// namespace Sivin